﻿@page "/event"

@*
    事件：服务器事件和组件事件
*@

<button @onclick="@(e=>Click(e))">提交</button>

<Button OnClick="Click">新的提交</Button>

@inject IJSRuntime JS

@code{
    Task Click(MouseEventArgs e)
    {
        JS.InvokeVoidAsync("sayHello", "提交");
        return Task.CompletedTask;
    }
}